ENABLE OBJECT ZBIAS
This command will enable the setting of a Z-Bias slope and depth value, used to alter how an object renders to the screen based on its own Z buffer value and the Z buffer values already present in the scene.
ENABLE OBJECT ZBIAS Object Number, Slope Scale, Depth
Object Number
Integer
Specify an object number between 1 and 2415919103.
Slope Scale
Float
This value is a float number such as 0.5
Depth
Float
Specify the depth value.
This command does not return a value.
This command can be used to favour rendering one object over another, where both objects are in identical positions in the scene.
set display mode 800,600,32
cls
make object sphere 1,20
ENABLE OBJECT ZBIAS 1
do
loop
end
BASIC3D Commands Menu
Index